package com.lovo.ssc.service.impl;

import com.lovo.ssc.bean.Pendingcommodity;
import com.lovo.ssc.dto.ChartDto;
import com.lovo.ssc.mapper.PendingcommodityMapper;
import com.lovo.ssc.service.IPendingcommodityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-07-11
 */
@Service
public class PendingcommodityServiceImpl extends ServiceImpl<PendingcommodityMapper, Pendingcommodity> implements IPendingcommodityService {

	@Override
	public Pendingcommodity findByCommodityCode(String commodityCode) {
		return baseMapper.findByCommodityCode(commodityCode);
	}

	@Override
	public List<ChartDto> findChartData(String type,String startDate, String endDate) {
		return baseMapper.findChartData(type,startDate, endDate);
	}

	@Override
	public void deletePendingCommodityByCode(String code) {
		baseMapper.deletePendingCommodityByCode(code);
	}
}
